package com.cdl.iheritance;

/**
 * @author cdl
 * @date 2025/10/3
 */
public class Manager extends Employee{

    private double bonus; //奖金


    public Manager(String name, double salary, int year, int month, int day) {
        super(name, salary, year, month, day);
        bonus = 0;
    }



    public double getSalary(){
        double baseSalary = super.getSalary();
        return baseSalary + bonus;
    }

    public void setBonus(double b){
        bonus = b;
    }


}
